home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
hc
/
nutritio.sit
/
Nutrition v1.1
/
card_8213.txt
< prev
next >
Wrap
Text File
|
1988-02-13
|
4KB
|
241 lines
-- card: 8213 from stack: in.1
-- bmap block id: 4405
-- flags: 0000
-- background id: 7924
-- name: Nutrient plot
----- HyperTalk script -----
on openCard
if card field id 1 is empty then exit openCard
repeat with n = 1 to 8
put 2 * n - 1 into l
put line l of card field id 1 into amount
put line n of card field id 28 into rda
put round ((amount/rda) * 100 + .5) into line l of card field id 25
end repeat
repeat with n = 1 to 7
put 2 * n -1 into l
put line l of card field id 11 into amount
put n + 8 into m
put line m of card field id 28 into rda
put round ((amount/rda) * 100 + .5) into line l of card field id 30
end repeat
end openCard
-- part 1 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=327 top=56 right=299 bottom=380
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: A
-- part 9 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=457 top=305 right=341 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 1012 / 1012
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return
----- HyperTalk script -----
on mouseUp
put empty into card field id 1
put empty into card field id 11
put empty into card field id 25
put empty into card field id 30
visual effect dissolve
pop card
end mouseUp
-- part 11 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=80 top=71 right=282 bottom=134
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 14 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=74 top=8 right=30 bottom=174
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: View Sources
----- HyperTalk script -----
on mouseUp
go to card id 6810
end mouseUp
-- part 25 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=267 top=56 right=301 bottom=314
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 28 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=77 top=55 right=311 bottom=120
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: RDA's
-- part 29 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=306 top=8 right=29 bottom=444
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Customize to User
----- HyperTalk script -----
on mouseUp
push card
go to card id 5328
end mouseUp
-- part 30 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=18 top=71 right=282 bottom=72
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 31 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=196 top=38 right=342 bottom=252
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 129
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part contents for card part 16
----- text -----
Note: The values for recommended daily allowance (RDA) used here were for adult males.
Adults need approximately 50 grams of protein a day.
Pregnant women should get 80-100 grams of protein daily.
Take into account the fact that these totals are just for breakfast in this trial stack.
The full version will include totals for minerals as well.
-- part contents for card part 27
----- text -----
1000
60
1.4
1.6
2.2
3
18
400
800
800
350
10
15
1100
2000
-- part contents for card part 31
----- text -----
1000
60
1.4
1.6
2.2
3
18
400
800
800
350
10
15
1100
2000
-- part contents for card part 28
----- text -----
5000
60
1.4
1.6
2.2
3
18
400
800
800
350
10
15
1100
2000
56
2700